package calvin.study.rabbitmq.config;

import java.io.Serializable;

public class RabbitMqConfig implements Serializable {

	/**TODO*/
	private static final long serialVersionUID = -8199138713200318559L;

	/** 绑定的rountingkey */
	private String key;

	/** 绑定的Queue的名称 */
	private String queueName;

	/** exchange名称 */
	private String exchangeName;

	/**
	 * 构造函数
	 */
	public RabbitMqConfig() {
	}

	/**
	 * 带参数的构造函数
	 */
	public RabbitMqConfig(String key, String queueName, String exchangeName) {
		this.key = key;
		this.queueName = queueName;
		this.exchangeName = exchangeName;
	}

	/**
	 * 获取绑定的key
	 * 
	 * @return 绑定的key
	 */
	public String getKey() {
		return key;
	}

	/**
	 * 设定绑定的key
	 * 
	 * @param key 绑定的key
	 */
	public void setKey(String key) {
		this.key = key;
	}

	/**
	 * 获取绑定的Queue的名称
	 * 
	 * @return 绑定的Queue的名称
	 */
	public String getQueueName() {
		return queueName;
	}

	/**
	 * 设定绑定的Queue的名称
	 * 
	 * @param queueName 绑定的Queue的名称
	 */
	public void setQueueName(String queueName) {
		this.queueName = queueName;
	}

	/**
	 * 获取exchange名称
	 * 
	 * @return exchange名称
	 */
	public String getExchangeName() {
		return exchangeName;
	}

	/**
	 * 设定exchange名称
	 * 
	 * @param exchangeName exchange名称
	 */
	public void setExchangeName(String exchangeName) {
		this.exchangeName = exchangeName;
	}
}
